/*
 * Copyright (c) 2025 CAX Conversion Project
 */
package com.comac.ins.isfd.domain.bo;

import java.util.List;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdDatasourceDataIntegrationTask;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 数据源数据集成任务业务对象 isfd_datasource_data_integration_task
 *
 * @author Lion Li
 * @date 2024-10-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdDatasourceDataIntegrationTask.class, reverseConvertGenerate = false)
public class IsfdDatasourceDataIntegrationTaskBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 任务名称
     */
    @NotBlank(message = "任务名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String taskName;

    /**
     * 同步类型(离线同步或实时同步)
     */
    @NotBlank(message = "同步类型(离线同步或实时同步)不能为空", groups = {AddGroup.class, EditGroup.class})
    private String syncType;

    /**
     * 任务类型(FTP导入Doris等)
     */
    @NotBlank(message = "任务类型(FTP导入Doris等)不能为空", groups = {AddGroup.class, EditGroup.class})
    private String taskType;

    /**
     * 任务描述
     */
    @NotBlank(message = "任务描述不能为空", groups = {AddGroup.class, EditGroup.class})
    private String taskDescription;

    /**
     * 是否删除，0-未删除，1-已删除
     */
    private Integer isDeleted;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 最近的一次触发时间
     */
    private Date triggerTime;
    private IsfdDatasourceTaskDataSourceConfigBo datasourceTaskDataSourceConfigBo;

    private IsfdDatasourceTaskTargetConfigBo datasourceTaskTargetConfigBo;

    private IsfdDatasourceTaskSchedulingConfigBo datasourceTaskSchedulingConfigBo;
}
